package com.ticket;
/**
 * Meituan.com Inc.
 * Copyright (c) 2010-2018 All Rights Reserved.
 */

import com.ticket.exception.ServiceException;
import com.ticket.pojo.ArrivalAtPort;
import com.ticket.service.IArrivalAtPortService;
import com.ticket.serviceImpl.ArrivalAtPortServiceImpl;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import javax.annotation.Resource;

/**
 * <p></p>
 *
 * @author tuyou@meitun.com
 * @version $Id: StartUp.java, v 0.1 2018-08-13 14:31 tuyou $$
 */
public class StartUp {

    public static void main(String[] args) throws ServiceException {

        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
//        ArrivalAtPortServiceImpl arrivalAtPortService = applicationContext.getBean(ArrivalAtPortServiceImpl.class);
//        ArrivalAtPort port = arrivalAtPortService.queryByFlightNoAndDate("CZ5022", "2018-08-17");
//        System.out.println(port.toString());
    }
}